package com.heu.blood.security.exception;

import com.heu.blood.globalExceptionHandler.BaseErrorInfoInterface;


/**
 * @author lhh
 * @email lyj@heu.com
 * @date 2024-07-15 00:26:49
 * 安全模块的异常枚举类--全部以113开头
 */
public enum SecurityExceptionEnum implements BaseErrorInfoInterface {
    OUT_OF_TIME("1130","登陆超时，请重新登陆"),
    NO_LOGIN("1131","用户没有登陆"),
    NO_TIME("1132", "用户登陆时间未记录");
    SecurityExceptionEnum(String resultCode, String resultMsg){
        this.resultCode = resultCode;
        this.resultMsg = resultMsg;
    }

    // 错误码
    private final String resultCode;

    // 错误提示
    private final String resultMsg;
    @Override
    public String getResultCode() {
        return resultCode;
    }

    @Override
    public String getResultMsg() {
        return resultMsg;
    }
}
